home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / cvs.vim < prev    next >
Encoding:
Text File  |  2001-04-29  |  1.0 KB  |  39 lines

  1. " Vim syntax file
  2. " Language: CVS commit file
  3. " Maintainer:  Matt Dunford (zoot@zotikos.com)
  4. " Last Change: Thu Apr 26 13:17:53 CEST 2001
  5.  
  6. " For version 5.x: Clear all syntax items
  7. " For version 6.x: Quit when a syntax file was already loaded
  8. if version < 600
  9.     syntax clear
  10. elseif exists("b:current_syntax")
  11.     finish
  12. endif
  13.  
  14. syn region cvsLine  start="^CVS:" end="$" contains=cvsFile,cvsDir,cvsFiles
  15. syn match cvsFile contained "\s\t.*"
  16. syn match cvsDir  contained "Committing in.*$"
  17. syn match cvsFiles contained "\S\+ Files:"
  18.  
  19. " Define the default highlighting.
  20. " For version 5.7 and earlier: only when not done already
  21. " For version 5.8 and later: only when an item doesn't have highlighting yet
  22. if version >= 508 || !exists("did_cvs_syn_inits")
  23.     if version < 508
  24.         let did_cvs_syn_inits = 1
  25.         command -nargs=+ HiLink hi link <args>
  26.     else
  27.         command -nargs=+ HiLink hi def link <args>
  28.     endif
  29.  
  30.     HiLink cvsLine        Comment
  31.     HiLink cvsFile        Identifier
  32.     HiLink cvsFiles        cvsDir
  33.     HiLink cvsDir        Statement
  34.  
  35.     delcommand HiLink
  36. endif
  37.  
  38. let b:current_syntax = "cvs"
  39.